#include <stdio.h>

int main(int argc, char *argv[])
{
  int b[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  int i, s = 0;
  char r = reverse(b, 8);
  for (i = 6; i < 10; i++)
  {
    s += b[i];
  }
  printf("%d\n", r);
  return 0;
}

char reverse(int a[], int n)
{
  int i, t;
  for (i = 0; i < n; i++)
  {
    t = a[i];
    a[i] = a[n - 1 - i];
    a[n - 1 - i] = t;
  }
  return 1L;
}